# Contributor: Sean McAvoy <seanmcavoy@gmail.com>
# Maintainer: Sean McAvoy <seanmcavoy@gmail.com>
pkgname=dvdbackup
pkgver=0.4.2
pkgrel=1
pkgdesc="Tool to rip video DVDs from the command line"
url="https://dvdbackup.sourceforge.net/"
arch="all"
license="GPL-3.0-or-later"
makedepends="libdvdread-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://sourceforge.net/projects/dvdbackup/files/dvdbackup/dvdbackup-$pkgver/dvdbackup-$pkgver.tar.xz
	10-dvdbackup-dvdread-6.1.patch
	"

prepare() {
	default_prepare

	update_config_sub
	update_config_guess
}

build() {
	./configure \
		--prefix=/usr
	make
}

package() {
	mkdir -p $pkgdir/usr/share/locale
	make DESTDIR="$pkgdir" install
}

sha512sums="df9abb2ca0b8a7cd7855ddff94dae249b06b2ec0ee42f3e9c53aa46aebd9885bdf26dacecbd4a20ff5f642ea10c0c64b811d25c23802c8a2b1489281900fbe0d  dvdbackup-0.4.2.tar.xz
31bfbc09facc5fa827ac8f788f379d6cc4f84c8c8a6e3dc11be9a28455020a58cf47d8393815f5b416968e131b47c71185a1dda6832ca22bb95d0b7dc07a0604  10-dvdbackup-dvdread-6.1.patch"
